package Plugin_Reprise.editors.my_uvcmd_editor;

public class KeyWords {
	  protected static final String[] EMPTY = new String[0];

	  private static final String[] _unreservedwords = new String[0];

	  private static final String[] reservedwords = { 
	    "by", 
	    "exec.sp",
	    "exec-prod.sp", 
	    "with", 
	    "avec",
	    "count", 
	    "compter", 
	    "list", 
	    "readu",
	    "every",
	    "eval",
	    "lister", 
	    "sort", 
	    "chercher", 
	    "ed", 
	    "cvs", 
	    "create", 
	    "file", 
	    "creer", 
	    "fichier", 
	    "delete", 
	    "effacer", 
	    "who",
	    "qui",
	    "voc"
	     };

	  private static final String[] predicates = { 
	    "||", 
	    ",", 
	    ";", 
	    ".", 
	    "~", 
	    "<", 
	    "<=", 
	    ",", 
	    ",=", 
	    "=",
	    "!=", 
	    "<>",
	    "(+)", 
	    "(", 
	    ")", 
	    "*", 
	    "/", 
	    "+", 
	    "-", 
	    "?" };

	  private static final String[] types = { };

	  private static final String[] constants = {  };

	  private static final String[] functions = {  };

	  private static final String[] _comments = { 
	    "--" };

	  public static String[] getFunctions()
	  {
		String [] functions2= new String[functions.length*2];
		int index=0;
		for(String f:functions){
			functions2[index]=f;
			index++;
			functions2[index]=f.toUpperCase();
			index++;
		}
	    return functions2;
	  }

	  public static String[] getPredicates()
	  {
	    return predicates;
	  }

	  public static String[] getReservedwords()
	  {
			String [] reservedwords2= new String[reservedwords.length*2];
			int index=0;
			for(String f:reservedwords){
				reservedwords2[index]=f;
				index++;
				reservedwords2[index]=f.toUpperCase();
				index++;
			}
	    return reservedwords2;
	  }

	  public static String[] getUnreservedwords()
	  {
	    return _unreservedwords;
	  }

	  public static String[] getTypes()
	  {
	    return types;
	  }

	  public static Object[] getAllWords()
	  {
	    return new Object[] { 
	      getReservedwords(), getUnreservedwords(), getPredicates(), getTypes(), getConstants(), getFunctions(), getGlobalVariables() };
	  }

	  public static String[] getConstants()
	  {
	    return constants;
	  }

	  public static String[] getSingleLineComments()
	  {
	    return _comments;
	  }

	  public static String[] getGlobalVariables() {
	    return EMPTY;
	  }
	
}
